modDefine("pages/index/index",function(require,module,exports){Page({
  data: {
    show: false,
    list: [{
      name: '陕西中海人力资源开发有限公司(陕人研优聘)',
      appid: '',
      status: 0
    }, {
      name: '优职优工',
      appid: '',
      status: 0
    }],
    status: ['开发中', '审核中', '审核通过'],
    keyword: '',
    searchStatus: false,
    searchList: [],
    name: '',
    appid: '',
    popUpShow: false,
    authLink: '授权链接'
  },
  onLoad: function (options) {
    console.log('onLoad');
  },
  onShow: function () {
    console.log('onShow');
  },
  searchInput() {
    this.setData({
      keyword: e.value
      // searchList:this.list[e.value],
    });
  },
  getAuthLink() {
    wx.request({
      url: 'http://appv4.chinalao.com/api/authorizerAccessToken',
      method: 'post',
      success: res => {
        this.setData({
          popUpShow: true
        });
      }
    });
  },
  copyAuthLink() {
    this.setData({
      popUpShow: !this.data.popUpShow
    });
  },
  getNameInput(e) {
    this.setData({
      name: e.value
    });
  },
  getAppidInput(e) {
    this.setData({
      appid: e.value
    });
  },
  openAdd() {
    this.setData({
      name: '',
      appid: '',
      show: !this.data.show
    });
  },
  add: function () {
    let list = this.data.list;
    list.push({
      name: this.data.name,
      appid: this.data.appid,
      status: 0
    });
    this.setData({
      list: list
    });
    this.openAdd();
  },
  openDetail(e) {
    console.log(e);
    wx.navigateTo({
      url: '/pages/detail/index'
    });
  }
}, {
  path: "pages/index/index"
});});modDefine("pages/detail/index",function(require,module,exports){Page({
  data: {
    info: {
      name: '',
      appid: ''
    }
  },
  onLoad: function (options) {
    console.log('onLoad');
    wx.showToast({
      title: 'onLoad'
    });
    /*wx.request({
    	url:'http://appv4.chinalao.com/api/getVersionInfo',
    	method:'post',
    	data:{appid:'wxda962c7a7a74c113'},
    	success:(res)=>{
    		console.log(res)
    	}
    });*/
  },
  onShow: function () {
    console.log('onShow');
  },
  onReady: function () {
    console.log('onReady');
  },
  onHide: function () {
    console.log('onHide');
  },
  onUnload: function () {
    console.log('onUnload');
  },
  openupdatecode(e) {
    wx.navigateTo({
      url: '/pages/detail/index'
    });
  },
  updatecode(opts) {
    wx.request({
      url: 'http://appv4.chinalao.com/api/commit',
      method: 'post',
      data: {
        appid: 'wxda962c7a7a74c113'
      },
      success: res => {
        console.log(res);
      }
    });
  },
  qrcode(opts) {
    /*wx.request({
    	url:'http://appv4.chinalao.com/api/getTrialQRCode',
    	method:'post',
    	data:{appid:this.data.info.appid},
    	success:(res)=>{
    		console.log(res)
    	}
    });*/
  },
  //提交审核
  submitAudit(opts) {
    wx.request({
      url: 'http://appv4.chinalao.com/api/submitAudit',
      method: 'post',
      data: {
        appid: this.data.info.appid
      },
      success: res => {
        console.log(res);
        wx.showToast({
          title: ''
        });
      }
    });
  },
  //发布
  release(opts) {
    wx.request({
      url: 'http://appv4.chinalao.com/api/release',
      method: 'post',
      data: {
        appid: this.data.info.appid
      },
      success: res => {
        console.log(res);
      }
    });
  }
}, {
  path: "pages/detail/index"
});});modDefine("app",function(require,module,exports){// app.js
App({
  onLaunch() {
    console.log('app.js onLaunch');
  },
  onShow() {
    console.log('app.js onShow');
  },
  onHide() {
    console.log('app.js onHide');
  }
});});